home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
23
/
6
/
DISK2368.ZIP
/
ELEMLIST.CPP
< prev
next >
Wrap
Text File
|
1990-07-20
|
585b
|
34 lines
// Chapter 11 - Program 7
#include "elemlist.hpp"
void
employee_list::add_person(person *new_employee)
{
employee_element *temp;
temp = new employee_element(new_employee);
if (start == NULL)
start = end_of_list = temp;
else {
end_of_list->next_employee = temp;
end_of_list = temp;
}
}
void
employee_list::display_list(void)
{
employee_element *temp;
temp = start;
do {
temp->employee_data->display();
temp = temp->next_employee;
} while (temp != NULL);
}